<include file="Public:top"/>
<div id="main-content" class="clearfix">

<div id="breadcrumbs">
    <ul class="breadcrumb">
        <li><i class="icon-home"></i> <a href="{:U('Public/main')}">首页</a><span class="divider"><i
                class="icon-angle-right"></i></span></li>
        <li><a href="__URL__">商品管理</a> <span class="divider"><i class="icon-angle-right"></i></span></li>
        <li class="active">商品详细</li>
    </ul>
</div>
<!--#breadcrumbs-->


<div id="page-content" class="clearfix">

<div class="page-header position-relative">
    <h1>商品详细
        <small>
    </h1>
</div>
<!--/page-header-->


<div class="row-fluid">
    <!-- PAGE CONTENT BEGINS HERE -->

    <form class="form-horizontal" action="__SELF__" method="post" enctype="multipart/form-data">

        <div class="control-group">
            <label class="control-label" for="form-field-1">商品名称</label>

            <div class="controls">
                <input type="text" id="form-field-1" name="name" value="{$one.name}" placeholder="请输入15个字以内">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="form-field-2">商品所属分类</label>

            <div class="controls" id="form-field-2">
                <select name="cate_id">
                    <foreach item="list" name="cate_list">
                    <option value="{$list.id}" <eq name="list.id" value="$one['cate_id']">selected</eq>>{$list.name}</option>
                    </foreach>
                </select>

            </div>
        </div>


        <div class="control-group">
            <label class="control-label" for="form-field-4">商品价格</label>

            <div class="controls">
                <input class="input-mini" type="text" name="price" value="{$one.price}" id="form-field-4" placeholder="">￥

            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="form-field-4">商品数量</label>

            <div class="controls">
                <input class="input-mini" type="text" name="num" value="{$one.num}" id="form-field-4" placeholder=""> 默认为0，0为不限

            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="form-field-4">商品单位</label>

            <div class="controls">
                <input class="input-mini" type="text" name="unit" value="{$one.unit}" id="form-field-4" placeholder="">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="form-field-4">商品规格</label>

            <div class="controls">
                <input class="input-mini" type="text" name="specifications" value="{$one.specifications}" id="form-field-4" placeholder="">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="form-field-4">商品条码</label>

            <div class="controls">
                <input class="input-mini" type="text" name="code" value="{$one.code}" id="form-field-4" placeholder="">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="form-field-5">商品简介</label>

            <div class="controls">
                <input class="span11" type="text" placeholder="" value="{$one.content}" name="content">

                <div class="help-block" id="input-span-slider">255个字以内</div>
            </div>
        </div>


        <div class="control-group">
            <label class="control-label" for="form-field-6">商品封面图</label>

            <div class="controls">
                <input class="ace-tooltip" type="file" id="form-field-6" name="img">
                <span class="help-button ace-popover" data-trigger="hover" data-placement="left"
                      data-content="More details." title="请上传大小为">?</span>
                <a href="http://<?php echo $_SERVER['HTTP_HOST'];?>{$one.img}" target="_blank">查看图片</a>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="form-field-6">商品属性</label>

            <div class="controls">
                <label>
                    <input name="type" type="radio" value="0" <eq name="one.type" value="0">checked</eq> ><span class="lbl">下架</span>
                </label>
                <label>
                    <input name="type" type="radio" value="1" <eq name="one.type" value="1">checked</eq>><span class="lbl">普通</span>
                </label>
                <label>
                    <input name="type" type="radio" value="2" <eq name="one.type" value="2">checked</eq>><span class="lbl">秒杀</span>
                </label>
                <label>
                    <input name="type" type="radio" value="3" <eq name="one.type" value="3">checked</eq>><span class="lbl">促销（折扣）</span>
                </label>
            </div>
        </div>


        <div class="form-actions">
            <input type="hidden" name="id" value="{$one.id}" />
            <button class="btn btn-info" type="submit"><i class="icon-ok"></i> 提交</button>
            &nbsp; &nbsp; &nbsp;
            <button class="btn" type="reset"><i class="icon-undo"></i> 重置</button>
        </div>


</div>
<!--/.fluid-container#main-container-->
    <include file="Public:bottom"/>